package demo02;

public class Circle {
    final double pai = 3.14;

    private double r = 1  ;

    public double getR() {
        return r;
    }

    public void setR(double r) {
        this.r = r;
    }
    public double s(){
        double s = pai * r * r;
        return s;
    }
}
